From: Giovanni Campagna Date: Wed, 5 Sep 2012 21:07:06 +0000 (+0200) Subject: TelepathyClient: don't emit an error if an unknown message is acknowledged X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5874 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=488820daec895d21f62571794ac397c0f58e28f6;p=gnome-shell.git TelepathyClient: don't emit an error if an unknown message is acknowledged pending-messages-removed is emitted for sent messages too, but we don't include those in the _pendingMessages list. Avoid useless spew in the session logs in that case. https://bugzilla.gnome.org/show_bug.cgi?id=683449 --- diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index 15cc73825..3e9087c81 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -746,8 +746,6 @@ const ChatSource = new Lang.Class({ this._pendingMessages.splice(idx, 1); this.countUpdated(); } - else - throw new Error('Message not in our pending list: ' + message); }, _ackMessages: function() {